/**
 * 
 */
package idv.takeshi.software.productline.bookstore.application.service;

import javax.mail.MessagingException;

import org.apache.commons.lang.Validate;

/**
 * Mail service.
 * @author takeshi
 *
 */
public interface MailService {
	
	/**
	 * Send mail.
	 * @param from
	 * @param tos
	 * @param subject
	 * @param mailContent
	 * @param html
	 * @throws MessagingException 
	 */
	public void send(String from, String[] tos, String subject, String mailContent, boolean html)
		throws MessagingException;
	
	/**
	 * Send mail.
	 * @param from
	 * @param to
	 * @param subject
	 * @param mailContent
	 * @param html
	 * @throws MessagingException 
	 */
	public void send(String from, String to, String subject, String mailContent, boolean html)
		throws MessagingException;
	
	/**
	 * Send mail with default from address.
	 * @param to
	 * @param subject
	 * @param mailContent
	 * @param html
	 * @throws MessagingException 
	 */
	public void send(String to, String subject, String mailContent, boolean html)
		throws MessagingException;

	/**
	 * Send mail with default from address and multiple tos.
	 * @param tos
	 * @param subject
	 * @param mailContent
	 * @param html
	 * @throws MessagingException
	 */
	public void send(String[] tos, String subject, String mailContent, boolean html)
			throws MessagingException;

}
